package com.example.demo.day.easyExcel.primary.day1.template.demo.read;

import com.alibaba.excel.EasyExcel;
import com.example.demo.day.easyExcel.primary.day1.part1.DemoData;
import com.example.demo.day.easyExcel.primary.day1.part1.ExcelListener;

public class ReadTest {

    public static void main(String[] args) {
        String fileName = TestFileUtil.getPath() + "write" + ".xlsx";
        // 这里 需要指定读用哪个class去读，然后读取第一个sheet 文件流会自动关闭
        EasyExcel.read(fileName, DemoData.class, new ExcelListener()).sheet().doRead();
    }
}
